package cn.kgc.web.controller;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.lang.reflect.Method;

/**
 * @author: mosin
 * @version: v1.0  2022/4/28
 */
@WebServlet("/user")
public class UserServlet extends BaseServlet{

    //   /user?method=login
    protected void login(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

        System.out.println("登录请求已接收");

    }

    //   /user?method=register
    protected void register(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

        System.out.println("注册请求已接收");

    }


}
